.class public Lcom/waiqin365/lightapp/kehu/CMStoreRoleSelectActivity;
.super Lcom/waiqin365/lightapp/base/WqBaseActivity;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field private a:Landroid/widget/ImageView;

.field private b:Landroid/widget/TextView;

.field private c:Landroid/widget/TextView;

.field private d:Ljava/util/ArrayList;

.field private e:Lcom/waiqin365/lightapp/kehu/b/cj;

.field private f:Landroid/widget/ListView;

.field private g:Lcom/waiqin365/lightapp/kehu/b/ck;


# direct methods
.method public constructor <init>()V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;-><init>()V

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/kehu/CMStoreRoleSelectActivity;Lcom/waiqin365/lightapp/kehu/b/cj;)Lcom/waiqin365/lightapp/kehu/b/cj;
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/kehu/CMStoreRoleSelectActivity;->e:Lcom/waiqin365/lightapp/kehu/b/cj;

    return-object p1
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/kehu/CMStoreRoleSelectActivity;)Ljava/util/ArrayList;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMStoreRoleSelectActivity;->d:Ljava/util/ArrayList;

    return-object v0
.end method

.method private a()V
    .locals 2

    const v0, 0x7f0c01da

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMStoreRoleSelectActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMStoreRoleSelectActivity;->a:Landroid/widget/ImageView;

    const v0, 0x7f0c0305

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMStoreRoleSelectActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMStoreRoleSelectActivity;->b:Landroid/widget/TextView;

    const v0, 0x7f0c0309

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMStoreRoleSelectActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMStoreRoleSelectActivity;->c:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMStoreRoleSelectActivity;->c:Landroid/widget/TextView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMStoreRoleSelectActivity;->b:Landroid/widget/TextView;

    const v1, 0x7f0800c8

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/kehu/CMStoreRoleSelectActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMStoreRoleSelectActivity;->a:Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c01cb

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMStoreRoleSelectActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ListView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMStoreRoleSelectActivity;->f:Landroid/widget/ListView;

    new-instance v0, Lcom/waiqin365/lightapp/kehu/b/ck;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/CMStoreRoleSelectActivity;->d:Ljava/util/ArrayList;

    invoke-direct {v0, p0, v1}, Lcom/waiqin365/lightapp/kehu/b/ck;-><init>(Landroid/content/Context;Ljava/util/ArrayList;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMStoreRoleSelectActivity;->g:Lcom/waiqin365/lightapp/kehu/b/ck;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMStoreRoleSelectActivity;->f:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/CMStoreRoleSelectActivity;->g:Lcom/waiqin365/lightapp/kehu/b/ck;

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMStoreRoleSelectActivity;->f:Landroid/widget/ListView;

    new-instance v1, Lcom/waiqin365/lightapp/kehu/hk;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/kehu/hk;-><init>(Lcom/waiqin365/lightapp/kehu/CMStoreRoleSelectActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    return-void
.end method

.method static synthetic b(Lcom/waiqin365/lightapp/kehu/CMStoreRoleSelectActivity;)Lcom/waiqin365/lightapp/kehu/b/ck;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMStoreRoleSelectActivity;->g:Lcom/waiqin365/lightapp/kehu/b/ck;

    return-object v0
.end method

.method static synthetic c(Lcom/waiqin365/lightapp/kehu/CMStoreRoleSelectActivity;)Lcom/waiqin365/lightapp/kehu/b/cj;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMStoreRoleSelectActivity;->e:Lcom/waiqin365/lightapp/kehu/b/cj;

    return-object v0
.end method


# virtual methods
.method public a(Lcom/waiqin365/lightapp/kehu/b/cj;)V
    .locals 3

    new-instance v0, Lcom/waiqin365/lightapp/view/a/a;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/view/a/a;-><init>()V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/CMStoreRoleSelectActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    const-string/jumbo v2, "returnTo"

    invoke-virtual {v1, v2}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, v0, Lcom/waiqin365/lightapp/view/a/a;->a:Ljava/lang/String;

    iput-object p1, v0, Lcom/waiqin365/lightapp/view/a/a;->b:Ljava/lang/Object;

    invoke-static {}, Lcom/waiqin365/lightapp/view/a/b;->a()Ljava/util/Observable;

    move-result-object v1

    invoke-virtual {v1, v0}, Ljava/util/Observable;->notifyObservers(Ljava/lang/Object;)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/CMStoreRoleSelectActivity;->back()V

    return-void
.end method

.method public back()V
    .locals 0

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/CMStoreRoleSelectActivity;->finish()V

    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 1

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    packed-switch v0, :pswitch_data_0

    :goto_0
    return-void

    :pswitch_0
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/CMStoreRoleSelectActivity;->back()V

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x7f0c01da
        :pswitch_0
    .end packed-switch
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 3

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onCreate(Landroid/os/Bundle;)V

    const v0, 0x7f030083

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMStoreRoleSelectActivity;->setContentView(I)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/CMStoreRoleSelectActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "roles"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object v0

    check-cast v0, Ljava/util/ArrayList;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMStoreRoleSelectActivity;->d:Ljava/util/ArrayList;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/CMStoreRoleSelectActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "selectRole"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/b/cj;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMStoreRoleSelectActivity;->e:Lcom/waiqin365/lightapp/kehu/b/cj;

    const/4 v0, 0x0

    move v1, v0

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMStoreRoleSelectActivity;->d:Ljava/util/ArrayList;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMStoreRoleSelectActivity;->e:Lcom/waiqin365/lightapp/kehu/b/cj;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMStoreRoleSelectActivity;->d:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-ge v1, v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMStoreRoleSelectActivity;->e:Lcom/waiqin365/lightapp/kehu/b/cj;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/b/cj;->b:Ljava/lang/String;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMStoreRoleSelectActivity;->e:Lcom/waiqin365/lightapp/kehu/b/cj;

    iget-object v2, v0, Lcom/waiqin365/lightapp/kehu/b/cj;->b:Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMStoreRoleSelectActivity;->d:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/b/cj;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/b/cj;->b:Ljava/lang/String;

    invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMStoreRoleSelectActivity;->d:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/b/cj;

    const/4 v1, 0x1

    iput-boolean v1, v0, Lcom/waiqin365/lightapp/kehu/b/cj;->d:Z

    :cond_0
    invoke-direct {p0}, Lcom/waiqin365/lightapp/kehu/CMStoreRoleSelectActivity;->a()V

    return-void

    :cond_1
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0
.end method
